package com.mgface.framework.commandline;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 服务启动执行
 *
 */
@Component
@Order(2)
public class StartupCommandLineRunner implements CommandLineRunner {
	private final static Logger log = LogManager.getLogger(StartupCommandLineRunner.class);

	@Override
	public void run(String... args) throws Exception {
		log.info(">>>>>>>>>>>>>>>服务启动执行,执行加载数据等操作 {} <<<<<<<<<<<<<", StartupCommandLineRunner.class.getSimpleName());
	}

}
